package com.leo.erp.dto;

import java.util.List;

import com.leo.erp.entity.Tenant;
import com.leo.erp.enums.TenantStateEnum;


public class TenantExecution {
	//结果状态
	private int state;
	//状态标识
	private String stateInfo;
	//日志数量
	private int count;
	//操作(增删改的时候使用)
	private Tenant tenant;
	//列表(查询列表的时候使用)
	private List<Tenant> tenantList;
				
	//构造函数
	public TenantExecution() {
					
	}
				
	//操作失败的时候使用的构造器
	public TenantExecution(TenantStateEnum stateEnum) {
		this.state = stateEnum.getState();
		this.stateInfo = stateEnum.getStateInfo();
	}
				
	//操作成功的时候使用的构造器
	public TenantExecution(TenantStateEnum stateEnum, Tenant tenant) {
		this.state = stateEnum.getState();
		this.stateInfo = stateEnum.getStateInfo();
		this.tenant = tenant;
	}
				
	//操作成功的时候使用的构造器
	public TenantExecution(TenantStateEnum stateEnum, List<Tenant> tenantList) {
		this.state = stateEnum.getState();
		this.stateInfo = stateEnum.getStateInfo();
		this.tenantList = tenantList;
	}

	public int getState() {
		return state;
	}

	public void setState(int state) {
		this.state = state;
	}

	public String getStateInfo() {
		return stateInfo;
	}

	public void setStateInfo(String stateInfo) {
		this.stateInfo = stateInfo;
	}

	public int getCount() {
		return count;
	}

	public void setCount(int count) {
		this.count = count;
	}

	public Tenant getTenant() {
		return tenant;
	}

	public void setTenant(Tenant tenant) {
		this.tenant = tenant;
	}

	public List<Tenant> getTenantList() {
		return tenantList;
	}

	public void setTenantList(List<Tenant> tenantList) {
		this.tenantList = tenantList;
	}

	
}
